package com.xuzhiguang.baidu.pan.sdk.model;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.databind.PropertyNamingStrategy;
import com.fasterxml.jackson.databind.annotation.JsonNaming;

import java.util.Map;

/**
 * @author xuzhiguang
 * @date 2020/6/26 17:40
 */
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonNaming(PropertyNamingStrategy.SnakeCaseStrategy.class)
@JsonIgnoreProperties(ignoreUnknown = true)
public class BasicCategoryInfoResult extends BaiduPanCommonResult {

    private Map<String, Count> info;


    @Override
    public String toString() {
        return "BasicCategoryInfoResult{" +
                "super=" + super.toString() + '\''+
                ", info=" + info +
                '}';
    }

    public Map<String, Count> getInfo() {
        return info;
    }

    public void setInfo(Map<String, Count> info) {
        this.info = info;
    }

    public static class Count {

        private Long total;

        /**
         * 文件占用大小
         */
        private Long size;

        /**
         * 文件个数
         */
        private Long count;

        @Override
        public String toString() {
            return "Count{" +
                    "total=" + total +
                    ", size=" + size +
                    ", count=" + count +
                    '}';
        }

        public Long getTotal() {
            return total;
        }

        public void setTotal(Long total) {
            this.total = total;
        }

        public Long getSize() {
            return size;
        }

        public void setSize(Long size) {
            this.size = size;
        }

        public Long getCount() {
            return count;
        }

        public void setCount(Long count) {
            this.count = count;
        }
    }

}
